package com.ny.dao;

import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {
    Student login(String name,String password) throws Exception;

    int insertStudent(Student student) throws SQLException,  ClassNotFoundException;
    int updateStudent(Student student) throws SQLException, ClassNotFoundException;
    List<Student> findAllStudents() throws Exception, ClassNotFoundException;
    Student getStudentById(int id) throws Exception;
    int deleteStudent(int id) throws Exception;


}
